<template>
<div class="page" data-name="public-parking-lot-list">
  <div class="navbar">
    <div class="navbar-inner">
      <div class="left">
        <a href="#" class="link back">
          <i class="f7-icons">chevron_left</i>
        </a>
      </div>
      <div class="title">
      	支付宝支付
      </div>
      <div class="right">
        <a href="/lock/form"  class="link headbtn">
           <i class="f7-icons">add</i>
        </a>
      </div>
    </div>
  </div>
  <div class="page-content">
	  	<div class="list pay-form" style="display:none;">
  		</div>
		<div class="list">
			<button class="pay">支付</button>		
		</div>	
  </div>
</div>
</template>
<script>

  return {
    data: function () {
    	 var lotBatchListResult = [];
      return {
    	  lotBatchList: lotBatchListResult
      };
    },
  	on:{
  		 pageInit: function () {
  	        self = this;
  	        var app = self.$app;
  	        var fruits = self.fruits;
  	        router = self.$router;
  	        $ = self.$;
  	       	
  	      
  	        /**
  	      $$(".pay").on('click',function(){
  	    	app.request({
			    url: 'http://192.168.1.117:8081/alipayResful/pay',
			    method: 'POST',
			    contentType: 'application/json',
			    async:false,
			    data: "",
			    timeout:5000,
			    success: function (data) {
			    	cordova.plugins.alipay.payment(data, (success) => {
		  	    	      console.log(success);
		  	    	      alert(success);
		  	    	    }, (error) => {
		  	    	      console.log(error);
		  	    	    });
			    	//$$(".pay-form").html(data);
			    	//$$('form[name="punchout_form"]').submit();
			    },
			    error:function (xhr,data){
			    	alert(xht);
			    }
			  });
  	      });
  	        */
  		 }
  	}
	
  };
</script>
